package com.foreknow.proxy;

public class MyTEST {
    public static void main(String[] args) {
        Dog dog1 = new DogImpl();
        Object proxy = MyProxyFactory.getProxy(dog1);
        Dog dog = null;
        if (proxy instanceof Dog){
            dog = (Dog) proxy;
            dog.info();
            dog.run();
        }
    }
}
